<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html class="site-html">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>云总线App下载</title>
    <link href="../content/css/reset.css" rel="stylesheet"/>
    <link href="../content/css/common.css" rel="stylesheet"/>
    <link href="../content/css/appDownLoad.css" rel="stylesheet"/>
</head>

<body style="overflow:auto;">
<div class="app-download">
    <div class="banner">
        <div class="layout">
            <div class="clearfix">
                <h1 class="logo"></h1>

                <div class="nav">
                    <a href="appDownloadPage.htm" id="app_download">应用下载</a>
                    <span class="line"></span>
                    <a href="appDownloadIndex.htm" class="active" id="app_index">产品介绍</a>
                </div>
            </div>

            <div class="banner-inner">
                <img src="../content/images/handhold-pic_10.png" width="386" height="496" border="0" alt="">

                <div class="text-box">
                    <h2>云总线智能车辆运营管理工具</h2>

                    <p>云总线APP是针对客运行业车辆管理开发的一款手机客户端软件。通过对云设备采集的数据进行识别、分析、预测，实现对车辆安全、能耗、机务的智能管理及控制。</p>

                    <div class="btn-box">
                        <a href="http://android.myapp.com/myapp/detail.htm?apkName=com.hns.cloud" class="and-btn" id="andUrl"></a>
                        <a href="https://appsto.re/cn/YdnK9.i" class="ios-btn" id="iosUrl"></a>
                    </div>
                </div>

            </div>
        </div>
    </div>

    <div class="product-des">
        <h2>四大创新功能</h2>

        <div class="layout">
            <img src="../content/images/app-show-pic_03.png" width="999" height="391" border="0" alt="">
            <img src="../content/images/app-show-pic_05.png" width="999" height="468" border="0" alt="">
            <img src="../content/images/app-show-pic_07.png" width="1000" height="471" border="0" alt="">
            <img src="../content/images/app-show-pic_08.jpg" width="1000" height="469" border="0" alt="">
        </div>
    </div>

    <div class="app-footer">
        © 2015厦门汉纳森软件科技有限公司 闽ICP备15013270号-1
    </div>
</div>

<div class="mobile-download">
    <img src="../content/images/mobile-logo_03.png" class="logo" border="0" alt="">

    <div class="btn-box">
        <a href="http://a.app.qq.com/simple.jsp?pkgname=com.hns.cloud" class="and-btn" id="andUrl2"></a>
        <a href="https://itunes.apple.com/cn/app/yun-zong-xian-xi-tong/id1032900850?l=en&mt=8" class="ios-btn" id="iosUrl2"></a>
    </div>
    <p>© 2015厦门汉纳森软件科技有限公司 </p>
</div>

<script src="../content/js/lib/jquery.js"></script>
<script type="text/javascript">
    $(function () {
        $(".app-download").addClass("animation");
        $app_download = $("#app_download");
        $app_index = $("#app_index");
        $ios_btn = $("#ios_btn");

        //TODO
        var host = window.location.host;
        /* if(host.indexOf("183.237.185.68")>=0 || host.indexOf("192.168.182.53")>=0){
        	$("#andUrl").attr("href", "http://"+host+"/can_app/sichuang_can_cloud_android_V1.0.0.apk");
			$("#iosUrl").attr("href", "http://"+host+"/can_app/sichuang_can_cloud_ios_V1.0.0.ipa");

			$("#andUrl2").attr("href", "http://"+host+"/can_app/sichuang_can_cloud_android_V1.0.0.apk");
			$("#iosUrl2").attr("href", "itms-services://?action=download-manifest&url=https://git.oschina.net/hns/SiChuang_CAN_CLOUD/raw/master/SiChuang_CAN_CLOUD.plist");
        } */
        
        /*$.ajaxExt({
        	url : "/logon/commonUrlInfo.htm"
        }).done(function(data){
		console.info(data);
            if(host.indexOf(data.innerIp)>=0){
            	$("#andUrl").attr("href", data.innerAndUrl);
    			$("#andUrl2").attr("href", data.innerAndUrl2);
    			$("#iosUrl").attr("href", data.innerIosUrl);
    			$("#iosUrl2").attr("href", data.innerIosUrl2);
            }else{
            	$("#andUrl").attr("href", data.outerAndUrl);
    			$("#andUrl2").attr("href", data.outerAndUrl2);
    			$("#iosUrl").attr("href", data.outerIosUrl);
    			$("#iosUrl2").attr("href", data.outerIosUrl2);
            }
        });*/
		
		$.ajax({
        	url : "../logon/commonUrlInfo.htm",
        	//url : url,
        	dataType : "JSON",
        	success:function(data){
        		if(host.indexOf(data.obj.innerIp)>=0){
					$("#andUrl").attr("href", data.obj.innerAndUrl);
					$("#andUrl2").attr("href", data.obj.innerAndUrl2);
					$("#iosUrl").attr("href", data.obj.innerIosUrl);
					$("#iosUrl2").attr("href", data.obj.innerIosUrl2);
				}else{
					$("#andUrl").attr("href", data.obj.outerAndUrl);
					$("#andUrl2").attr("href", data.obj.outerAndUrl2);
					$("#iosUrl").attr("href", data.obj.outerIosUrl);
					$("#iosUrl2").attr("href", data.obj.outerIosUrl2);
				}
        	}
        });
        

        var browser = {
            versions: function () {
                var u = navigator.userAgent, app = navigator.appVersion;
                return {
                    mobile: !!u.match(/AppleWebKit.*Mobile.*/)
                };
            }(),
            language: (navigator.browserLanguage || navigator.language).toLowerCase()
        }

        if (browser.versions.mobile) {//判断是否是移动设备打开。browser代码在下面
            var ua = navigator.userAgent.toLowerCase();//获取判断用的对象
            if (ua.match(/MicroMessenger/i) == "micromessenger" || ua.match(/QQ/i) == "qq") {
                $(".mobile-download .btn-box a").click(function () {
                    alert("请点击右上角按钮，然后在弹出的菜单中，选择在浏览器中打开，即可下载安装");
                    return false;
                })

            }
        }

        /* $ios_btn.click(function(){
         alert("敬请期待！");
         }); */


    })
</script>
</body>
</html>

